const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  // 配置反向代理
  devServer: {
    proxy: {
      // 这个是获取到到当前城市
      '/cityAddress': {
        target: 'http://pv.sohu.com/cityjson?ie=utf-8',
        changeOrigin: true,
        pathRewrite: {
          '/cityAddress': ''
        }
      }
    }
  }

})
// http://pv.sohu.com/cityjson?ie=utf-8
